package cn.nextProject.mapper;

import cn.nextProject.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    User getUserByUsername(String username);

    User getUserByUsernameNoPassword(String username);

    void save(User user);

    List<User> findByUser(User user);

    /**
     * 查询用户权限等
     * @param username
     * @return
     */
    User findByUsername(String username);

    void updateUser(User user);

    List<User> findAllNoRoleGroup(@Param("roleGroupId")Long roleGroupId);


}
